package com.example.java8.streamdemo.streamdemo.DistinctClassDemo;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author by KoVaVo
 * @Date 2021-08-26 21:32
 * @Desc:
 */
public class stuList {
    public static List<student> getStuList(){
        ArrayList<student> students = new ArrayList<>();
        student student1 = new student();
        student1.setStuNo("001");
        student1.setName("tom");
        student student2 = new student();
        student2.setStuNo("002");
        student2.setName("tony");
        student student3 = new student();
        student3.setStuNo("003");
        student3.setName("tony");
        students.add(student1);
        students.add(student2);
        students.add(student3);
        return students;
    }
}
